package com.itheima.vip01;

public class StudentDemo {
    public static void main(String[] args) {

        Student s = new Student();//这里是创建一个对象

        //因为还没有给创建的对象赋值，所以打印的是默认值
        System.out.println(s.name +"," + s.age);

        //这里是给创建的对象赋值
        s.name = "林青霞";
        s.age = 30;
        System.out.println(s.name +"," + s.age);

        //这里是调用方法
        s.study();
        s.doHomeWork();
    }
}
